package Logic;

import Exceptions.SaveLoadException;

/**
 * simple interface for save/load objects
 * @author itay
 *
 */
public interface ISaveLoad{

	/**
	 * these functions can save/load with a dialog opened
	 * @param engine
	 * @throws SaveLoadException
	 */
	public void saveGame(IPlayEngine engine) throws SaveLoadException;
	public void loadGame(IPlayEngine engine) throws SaveLoadException;
	
	/**
	 * These functions opreates silently without dialog
	 * just pass the path
	 * @param engine
	 * @param path
	 * @throws SaveLoadException
	 */
	public void saveGame(IPlayEngine engine,String path) throws SaveLoadException;
	public void loadGame(IPlayEngine engine,String path) throws SaveLoadException;
}
